﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmClientes.aspx.cs" Inherits="Box.Cliente.Ventas.frmClientes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
   <script type="text/javascript">
       $(document).ready(function() {
           $("#<%= txtRuc.ClientID %>").keydown(function(e) {
               if (e.shiftKey) {
                   e.preventDefault();
               }
               else {
                   var key = window.Event ? e.which : e.keyCode;
                   return ((key >= 48 && key <= 57) || (key == 8) || (key==13));

               }
           });
           $("#<%= txtNombre.ClientID %>").keydown(function (e) {

               var key = e.keyCode || e.which;
               var tecla = String.fromCharCode(key).toLowerCase();
               var letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
               var especiales = [8, 37, 39, 46];

               var tecla_especial = false;
               for (var i in especiales) {
                   if (key == especiales[i]) {
                       tecla_especial = true;
                       break;
                   }
               }

               if (letras.indexOf(tecla) == -1 && !tecla_especial)
                   return false;
           });


       });
    </script>
<div class="col-lg-12">

           <div id="form1" class="panel panel-primary">
                <div class="panel-heading">
                            <h3>IInformación de Cliente</h3>
                 
                </div>
                <div class="panel-body">
                <td class="auto-style6"> <asp:TextBox runat="server" ReadOnly="True" ID="txtId" Visible="false"></asp:TextBox>                        
                    <table class="table">                       
                 
                        <tr>
                            <td class="auto-style1"><label>Nombre *</label></td>
                            <td class="auto-style6"><asp:TextBox CssClass="required form-control input-sm" ID="txtNombre" placeholder="Nombre" runat="server" Width="197px"/></td>                            
                            <td class="auto-style5"><label>Organización</label></td>
                            <td class="auto-style4"><asp:TextBox runat="server" ID="txtOrganizacion" placeholder="Organización" CssClass=" form-control input-sm" Width="233px"/></td>
                        </tr>
                        <tr>
                            <td class="auto-style1"><label>Ruc/Dni *</label></td>
                            <td class="auto-style6"><asp:TextBox CssClass="form-control input-sm required" ID="txtRuc" placeholder="Ruc/Dni" runat="server" Width="199px"/></td>
                            <td class="auto-style5"><label>Email</label></td>
                            <td class="auto-style4"><asp:TextBox CssClass="form-control input-sm" TextMode="Email" ID="txtEmail" placeholder="E-mail" runat="server" Width="234px"/></td>                            
                        </tr>
                        <tr>
                            <td class="auto-style1"><label>Dirección <b>*</b></label></td>
                            <td class="auto-style6"><asp:TextBox CssClass="form-control input-sm" ID="txtDireccion" placeholder="Dirección" runat="server" Width="202px"/></td>
                            <td class="auto-style5"><label>Dirección Empresa</label></td>
                            <td class="auto-style4"><asp:TextBox runat="server" ID="txtDireccionEmpresa" CssClass="form-control input-sm" placeholder="Dirección Empresa" Width="237px"/></td>
                        </tr>
                        <tr>
                            <td class="auto-style1"><label>Celular</label></td>
                            <td class="auto-style6"><asp:TextBox CssClass="form-control input-sm" ID="txtTelefono" TextMode="Phone" placeholder="Teléfono" runat="server" Width="200px"/></td>
                            <td class="auto-style5"><label>Telef. Fijo</label></td>
                            <td class="auto-style4"><asp:TextBox runat="server" CssClass="form-control input-sm" ID="txtTelefonoCasa" TextMode="Number" placeholder="Teléfono Fijo" Width="239px"/></td>
                        </tr>
                    </table>
                </div>
                <div class="panel-footer">
                    <asp:Button runat="server" CssClass="btn btn-primary" ID="btnGuardar" Text="Guardar" OnClick="btnGuardar_Click"/>
                    <asp:Button runat="server" ID="btnLimpiar" CssClass="btn bg-danger" Text="Limpiar"/>
                </div>

           </div>
            
    </div>

</asp:Content>
